PATH![]() |
![]() ![]() |
Handles all user interaction while a window is being resized.
pascal Boolean ResizeWindow (
WindowPtr window,
Point startPoint,
const Rect *sizeConstraints,
Rect *newContentRect);
The ResizeWindow function moves an outline (grow image) of the window's edges around the screen, following the user's cursor movements, and handles all user interaction until the mouse button is released. Unlike with the function GrowWindow , there is no need to follow this call with a call to the function SizeWindow , because once the mouse button is released, ResizeWindow resizes the window if the user has changed the window size. Once the resizing is complete, ResizeWindow draws the window in the new size.
Your application should call the ResizeWindow function instead of the earlier Window Manager functions SizeWindow and GrowWindow . Some appearances may allow the window to be resized from any corner, not just the bottom right, and as a result, when the user resizes the window, the window may move on the screen and not merely change size. ResizeWindow informs your application of the new window bounds, so that your application can respond to any changes in the window's position.